# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxpresent
pkgver=1.0.1
pkgrel=2
pkgdesc="A Xlib-compatible API for the Present extension"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
makedepends="
	libx11-dev
	libxext-dev
	libxfixes-dev
	libxrandr-dev
	util-macros
	xorgproto
	"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.x.org/releases/individual/lib/libXpresent-$pkgver.tar.xz"
options="!check" # No test suite
builddir="$srcdir/libXpresent-$pkgver"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
a4551f49a68f4487eb70dc5b50b7f745fbc8b6842cfa60422afe3834af41c504a37bcfddb4e7e9ee084b250df256034290776c8eb7d8838e392eb626fff55d25  libXpresent-1.0.1.tar.xz
"
